﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="EditContact.aspx.cs" Inherits="AB.ServiceDirectory.Design.HContact.EditContact02" %>
 <%@Register tagName="ContactLookupPopup" tagPrefix="wuc" src="~/WebUserControls/Lookup/ContactLookupUserControl.ascx" %>   

<asp:Content ID="head" ContentPlaceHolderID="head" runat="server">
    <link href="../style/AnhPopup.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="ContentTitle" runat="server">
    <h2>
        EDIT CONTACT</h2>
</asp:Content>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
    <div class="grid740 simplebox">
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelFirstName" runat="server" CssClass="st-labeltext" Text="First Name"
                    AssociatedControlID="TextBoxFirstName">
                </asp:Label>
                <asp:TextBox ID="TextBoxFirstName" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox><asp:RequiredFieldValidator
                    ControlToValidate="TextBoxFirstName" ID="TextBoxFirstNameRequired" runat="server"
                    ErrorMessage="*" ForeColor="red"></asp:RequiredFieldValidator>
            </div>
            <div class="half">
                <asp:Label ID="LabelManagerName" runat="server" Text="Manager Name" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxManagerId" runat="server" Width="170px" CssClass="st-forminput"
                    ReadOnly="True"></asp:TextBox>
                <asp:LinkButton ID="LinkButtonLookup" runat="server" OnClick="LinkButtonLookupClick"
                    CausesValidation="False">Lookup </asp:LinkButton>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelSurname" runat="server" Text="SurName" CssClass="st-labeltext">
                </asp:Label>
                <asp:TextBox ID="TextBoxSurname" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox><asp:RequiredFieldValidator
                    ControlToValidate="TextBoxSurname" ID="RequiredFieldValidator1" runat="server"
                    ErrorMessage="*" ForeColor="red"></asp:RequiredFieldValidator>
            </div>
            <div class="half">
                <asp:Label ID="LabelContactType" runat="server" Text="Contact Type" CssClass="st-labeltext required"></asp:Label>
                <asp:DropDownList ID="DropDownListContactType" CssClass="level2" runat="server" DataTextField="ContactTypeName"
                    DataValueField="ContactTypeId">
                </asp:DropDownList>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelKnowAs" runat="server" Text="Know As" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxKnowAs" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox>
            </div>
            <div class="half">
                <asp:Label ID="LabelBestContact" runat="server" Text="Best Contact Method" CssClass="st-labeltext"></asp:Label>
                <asp:DropDownList ID="DropDownListBestContactMethod" CssClass="level2" runat="server"
                    DataTextField="BestContactMethodName" DataValueField="BestContactMethodId">
                </asp:DropDownList>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelOffice" runat="server" Text="Office Phone" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxOfficePhone" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox>
            </div>
            <div class="half">
                <asp:Label ID="LabelJobRole" runat="server" Text="Rob Role" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxRole" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelMobilePhone" runat="server" Text="Mobile Phone" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxMobilePhone" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox>
            </div>
            <div class="half">
                <asp:Label ID="LabelWorkBase" runat="server" Text="WorkBase" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxWorkBase" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox></div>
            <div class="clear">
            </div>
        </div>
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelHomePhone" runat="server" Text="ST Home Phone" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxHomePhone" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox></div>
            <div class="half">
                <asp:Label ID="LabelJobTitle" runat="server" Text="Job Title" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxJobTitle" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox></div>
            <div class="clear">
            </div>
        </div>
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelEmailAddress" runat="server" Text="Email Address" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxEmailAddress" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox></div>
            <div class="half">
                <asp:Label ID="LabelIsActive" runat="server" Text="Is Active ?" CssClass="st-labeltext"></asp:Label>
                <asp:CheckBox ID="CheckBoxIsActive" runat="server" /></div>
            <div class="clear">
            </div>
        </div>
        <div class="button-box">
            <asp:Button ID="ButtonSave" CssClass="st-button" runat="server" Text="Save" OnClick="ButtonSaveClick"
                Enabled="False" />
            <asp:Button ID="ButtonBack" CssClass="st-clear" runat="server" Text="Back" OnClick="ButtonBackClick"
                CausesValidation="False" />
            <asp:HiddenField ID="HiddenFieldManagerId" runat="server" />
            <asp:HiddenField ID="HiddenFieldContactId" runat="server" />
        </div>
    </div>
<wuc:ContactLookupPopup ID="ContactLookup" runat="server" MaximumRows="5" HiddenFieldResultID="HiddenFieldManagerId" TextBoxResultID ="TextBoxManagerId" />
</asp:Content>
